Set properties in the order in which they are specified in the xml file.
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 3 Jul 2008 18:09:04 +0000 (18:09 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 3 Jul 2008 18:09:04 +0000 (18:09 +0000)
        * gtk/gtkbuilderparser.c (parse_custom): Set properties in the order
        in which they are specified in the xml file.

svn path=/trunk/; revision=20749

ChangeLog
gtk/gtkbuilderparser.c

index b734a1d485ffe71f4139afb49bd0628f7919df48..80289f9999a5bbb8d86585321846c5a2cdf3c92b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-03  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 540915 – GtkBuilder sets properties in reverse order
+
+       * gtk/gtkbuilderparser.c (parse_custom): Set properties in the order 
+       in which they are specified in the xml file.  
+
 2008-07-03  Matthias Clasen  <mclasen@redhat.com>
        
        Bug 539944 – Add GtkScaleButton API so struct fields can be marked as
index 76e79cb3c15f48dc42312090dc39a190d9222251..9e073a426d6fbd48048ddcef05e8d4f386ff09aa 100644 (file)
@@ -713,6 +713,7 @@ parse_custom (GMarkupParseContext *context,
       ObjectInfo* object_info = (ObjectInfo*)parent_info;
       if (!object_info->object)
        {
+         object_info->properties = g_slist_reverse (object_info->properties);
          object_info->object = _gtk_builder_construct (data->builder,
                                                        object_info,
                                                        error);